package team.xstudio.bedwarstoolkit.ingame

import net.minecraft.world.entity.player.Player
import net.minecraft.world.inventory.PlayerEnderChestContainer
import java.util.*

/**
 * Created in 2025/6/10
 * Project: bedwarstoolkit
 *
 * @author <a href="https://github.com/Bread-Nicecat">Bread_NiceCat</a>
 * <p>
 *
 * <p>
 **/
class BWGameTeam(
    val game: BWGameInstance,
    val playerCount: Int,
    val name: String,
    val color: Int,
    private val players: Set<UUID>,
) {
    var bedSurvived = true
    val teamChest = PlayerEnderChestContainer()

    fun hasPlayer(player: Player): Boolean {
        return players.contains(player.uuid)
    }

    fun players() = players.stream()
    

}